package com.ohs.dal.dao;

import java.util.List;

import com.ohs.dal.model.Location;
import com.ohs.dal.model.Province;
import com.ohs.dal.model.Room;

public interface LocationDAO extends AbstractDAO<Location> {
	public void add(Location location);
	
	public void update(Location location);

	public Location get(Long id);

	public List<Location> findLocation(String keyword);
	
	public Location getByAccount(String username);
	
	public int searchTotal(String keyword, long selectedProvinceId, long selectedSpecialtyId);
	
	public List<Location> search(String keyword, int startIndex, int pageSize, long selectedProvinceId, long selectedSpecialtyId);
	
	public List<Province> getAllProvince();
	
	public Province getProvince(long id);
	
	public List<Location> getAllLocation();
	
	public List<Location> getTopLocation(int max);
}
